package service.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import pojo.Customer;
import service.CustomerManager;

///Customer 业务实现类
public class CustomerManagerImplMock implements CustomerManager{

	private List<Customer> list = new ArrayList<Customer>();
	
	public CustomerManagerImplMock(){
		Customer c = new Customer(null, "tom", 234.6, true, new Date(), new String[]{"basket","football"});
		list.add(c);
	}
	
	@Override
	public int addCustomer(Customer c) {
		list.add(c);
		
		return 1;
	}

	@Override
	public List<Customer> findAllCustomers() {
		return list;
	}

	@Override
	public int deleteCustomer(Integer cid) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateCustomer(Customer c) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Customer searchCustomer(Integer cid) {
		// TODO Auto-generated method stub
		return null;
	}

}
